package com.cscj.android.repository.settings.model

import android.os.Build
import androidx.annotation.IntDef

object SettingConstants {

    const val DefaultFontSize = 100
    val AndroidUserAgent = "Mozilla/5.0 (Linux; Android " + Build.VERSION.RELEASE + ")"

    /**
     * dark mode start
     */
    //浅色模式
    const val DarkModeDisabled = 0

    //深色模式
    const val DarkModeForceDark = 1

    //跟随系统
    const val DarkModeFollowSystem = 2

    const val DefaultDarkMode = DarkModeDisabled

    @IntDef(
        flag = true,
        value = [DarkModeDisabled, DarkModeForceDark, DarkModeFollowSystem]
    )
    @Retention(AnnotationRetention.SOURCE)
    annotation class DarkMode

    /**
     * dark mode end
     */

    /**
     * image mode start
     */

    const val ImageModeEnabled = 0 //有图
    const val ImageModeAuto = 1 //移动网络时禁用
    const val ImageModeBlock = 2 //无图
    const val DefaultImageMode = ImageModeEnabled

    @IntDef(
        flag = true,
        value = [ImageModeEnabled, ImageModeAuto, ImageModeBlock]
    )
    @Retention(AnnotationRetention.SOURCE)
    annotation class ImageMode
    /**
     * image mode end
     */

}